package com.igoal.service.paging;

import java.util.Map;

public interface PagingService {
	public static final int MAX_GOALS_OF_USER = 5;
	public static final int MAX_USERS_OF_GOAL = 20;
	public static final int MAX_ENTRIES = 5;
	public static final int MAX_COMMON_GOALS = 30;
	public static final int MAX_TOP_GOALS = 10;
	public static final String SORT_ENTRY_BY_PROPERTY = "createDate";
	
	@SuppressWarnings("rawtypes")
	Page getPage(int itemType, Map keyValues, String orderProperty, String lastOrderPropertyValue, boolean before);
	
	@SuppressWarnings("rawtypes")
	Page getPage(int itemType, Map keyValues, String orderProperty, String lastOrderPropertyValue);
}
